package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Signin;
import cn.wolfcode.crm.query.SigninQueryObject;

import java.util.List;

public interface SigninMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Signin record);

    Signin selectByPrimaryKey(Long id);

    List<Signin> selectAll();

    int updateByPrimaryKey(Signin record);

    int queryForCount(SigninQueryObject qo);

    List<Signin> queryForList(SigninQueryObject qo);

    //根据员工id 和签到状态查询签到信息
    int selectCountByEmpIdAndStatusIsIn(Long empId);

    List<Signin> selectListByEmpIdAndStatusIsIn(Long empId);

    //根据员工id 和签退状态查询签退信息
    int selectCountByEmpIdAndStatusIsOut(Long empId);

    List<Signin> selectListByEmpIdAndStatusIsOut(Long empId);

}